import React from 'react';
import WithSubscription from './WithSubscription';
import CommentList from './CommentList';

class SubscribeComponent extends React.Component {

    render() {
        const CommentListWithSubscription = WithSubscription(
            CommentList,
            (DataSource) => DataSource.getComments()
        );

        return (
            <React.Fragment>
                <CommentListWithSubscription/>
            </React.Fragment>
        )
    }
}

export default SubscribeComponent;